<?php
/**
 * Created by JetBrains PhpStorm.
 * User: jun
 * Date: 14-4-28
 * Time: 下午2:15
 * To change this template use File | Settings | File Templates.
 */

/*
 * 公共类
 */
//include_once "../../Lib/Log4PHP/Log4PHP.php";
//$log = Log4PHP::getLogger("common");

class common{
    //返回前台信息
    public static function returnMsg($arg_code,$arg_msg,$arg_data){
//        global $log;
        if($arg_code==1){
//            $log->error($arg_msg);
        }else{
//            $log->info($arg_msg);
        }
        return array("code"=>$arg_code,"msg"=>$arg_msg,"data"=>$arg_data);
    }
}